import 'package:enterprise_v6_app/app/components/toast_widget.dart';
import 'package:enterprise_v6_app/app/data/entities/common/department_user_tree_entity.dart';
import 'package:get/get.dart';

class DepartmentUserTreeController extends GetxController {
  /// 选中的节点
  DepartmentUserTreeEntity selectedEntity = DepartmentUserTreeEntity();

  ///完成
  void complete() {
    if (selectedEntity.id == null || selectedEntity.id == '') {
      AppToast.show('请选择部门');
      return;
    }
    Get.back(result: selectedEntity);
  }
}
